﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using ICSharpCode.SharpZipLib;
using FileSystem;
using Windows;
using XML;

namespace Applications
{
    public class Application
    {
        ICSharpCode.SharpZipLib.Zip.FastZip fZip = new ICSharpCode.SharpZipLib.Zip.FastZip();
        FileSystem.Dir Dir = new FileSystem.Dir();
        Windows.App App = new Windows.App();
        XML.XML tehXML = new XML.XML();

        public void Launch(string source, string destination)
        {
            fZip.ExtractZip(source, destination, "");
            tehXML.Load_XML(destination + "Application.settings", "Settings");
            string exe = tehXML.GetSetting("Assembly/EXE", "test.exe");
            App.New(destination + "bin\\" + exe, null);
        }
    }
}
